﻿using System;
using Cysharp.Threading.Tasks;
using UnityEngine;

namespace Core.UI
{
    /// <summary>
    /// 切换场景后，将UI界面进行替换
    /// </summary>
    public class UIPanelReplacement : MonoBehaviour
    {
        public string panelReplaceWith;
        
        private void Start()
        {
            UIManager.Ins.ClearAllUI();
            UIManager.Ins.SetUI(panelReplaceWith, true).Forget();
        }
    }
}